package com.coocaa.aries.core.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coocaa.aries.core.base.entity.BaseEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author bijiahao
 * @description
 * @date 2019/12/31 10:45
 */
public interface IBaseMapper<T extends BaseEntity> extends BaseMapper<T> {
    /**
     * 获取分页数据-总记录数
     *
     * @param params
     * @return
     */
    int selectCountPage(@Param("cm") Map<String, Object> params);

    /**
     * 分页数据
     *
     * @param params
     * @return
     */
    List<T> queryCommonPageList(@Param("cm") Map<String, Object> params);
}
